export default{
  /**
   * @param {Object} str 字符串首尾去空格
   */
  noTrim(str) {
  	return str.replace(/(^\s*)|(\s*$)/g, "");
  },
  getColor(val){
    if(val==1){
      return '#FF6666'
    }else if(val==2){
      return '#ff5500'
    }else if(val==3){
      return '#66CCCC'
    }else if(val==4){
      return '#00aa00'
    }else if(val==5){
      return '#0066CC'
    }else if(val==6){
      return '#99CC33'
    }
  },
  getTypeList:[{name:'自营商品',id:1},{name:'天猫商品',id:2},{name:'1688商品',id:3},{name:'淘宝商品',id:4},{name:'拼多多商品',id:5}],
  getTypeList4Grap:[{name:'天猫商品',id:2},{name:'1688商品',id:3},{name:'淘宝商品',id:4},{name:'拼多多商品',id:5}],
}